﻿namespace Armon.Lib.Type
{
    public static class DateTimeExtension
    {
        public static int ToTimeStamp(this DateTime d)
        {
            return (d - new DateTime(1970, 1, 1, 0, 0, 0, 0)).Milliseconds;
        }
    }
}
